<table width="80%" border="0">
      <thead><tr>
          <td align="right" colspan="5"><a href="javascript:void(0);" onClick="javascript:popup('add-course',null);"><b>Add New Course</b></td>
           
        </tr>
      </thead><thead><tr>
          <th>Title</th>
          <th>Description</th>
          <th>Date Created</th>
          <th>Term</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
        
        <?php
		$courses = $instructor->getAllCourses();
		if($courses != null) {
			$count = 0;
			 foreach($courses as $c) {
			 
			 
				//$groups = $c->getAllGroups(); 
			 
				print "<tr>
				<td><a href='course.php?c=".$c->id."'>".$c->title."</a></td>
				<td>".$c->description."</td>
				<td>".$c->dd."</td>
				<td>".$c->term."</td>
				<td><a href='course.php?dc=".$c->id."'>[Delete]</a><a href='course.php?md=".$c->id."'>[Modify]</a></td>
				 
				</tr>";
				$count++;
			  }	
			  	
	 
} 
?>
      </tbody>
    </table>